const HTTP = require("./request");
const { url } = require("./config");

module.exports = {
    getHomeBanner: function () {
        return HTTP({
            url: url + '/api/public/v1/home/swiperdata',
        })
    },
    getHomeGoods: function () {
        return HTTP({
            url: url + "/api/public/v1/goods/search"
        })
    },
    getGoodsDetail: function (data) {
        return HTTP({
            url: url + "/api/public/v1/goods/detail",
            data
        })
    },
    getGoodsQsearch: function (data) {
        return HTTP({
            url: url + "/api/public/v1/goods/qsearch",
            data
        })
    },
    getGoodsSearch: function (data) {
        return HTTP({
            url: url + "/api/public/v1/goods/search",
            data
        })
    },

}